package cn.jiyun.join;


import org.junit.Test;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class job {

    @Test
    @Scheduled(cron = "5 * * * * ? ")
    public void demo(){
        System.out.println("启动定时任务："+new Date());
    }

}
